﻿using ContactSMS.Commons.Util;

namespace ContactSMS.Domain.Entity
{
    public class Phone
    {
        public long Id { get; set; }
        public long UserId { get; set; }
        public long ContactId { get; set; }
        public string Mobile { get; set; }
        public string? Tag { get; set; }
        public long CreatTime { get; set; }
        public long UpdateTime { get; set; }

        public Phone() { }

        public Phone(long ContactId, string Mobile, string? Tag = "test", long UserId = 0)
        {
            this.ContactId = ContactId;
            this.UserId = UserId;
            this.Tag = Tag;
            this.Mobile = Mobile;
            this.CreatTime = TimeUtil.GetTimestamp();
            this.UpdateTime = TimeUtil.GetTimestamp();
        }
    }
}
